package com.alterzhang.alterzhang;

import lombok.extern.java.Log;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ApplicationContext;

/*这是一个spring项目*/
@MapperScan("com.alterzhang.alterzhang.dao")
@SpringBootApplication
@Log
@ServletComponentScan
public class AlterzhangApplication {


    public static void main(String[] args) {

       ApplicationContext applicationContext= SpringApplication.run(AlterzhangApplication.class, args);
        log.info("=======AlterzhangApplication====项目启动成功");

/*
       SqlSession sqlSession= (SqlSession) applicationContext.getBean("sqlSession");
*/

    }
}
